package com.example.spring.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class HisBean {


    @Value("${company}")
    private String company;

//    @Autowired
//    MyBean myBean;


    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

}
